package com.gengral.commons.constant;

/**
 * @author
 * @version V1.0
 * @description:常量类
 * @date 2020/1/19 16:26
 */
public class Constant {

    public static final String CURRENT_MEMBER = "CURRENT_MEMBER";
    public static final String PROJECT_ROOT_PATH = "PROJECT_ROOT_PATH";
    public static final String PAGE_INDEX = "/error.html";

    /**
     * 执行成功
     */
    public static final String SUCCESS = "1";
    /**
     * 执行失败，业务原因失败
     */
    public static final String FAIL = "0";
    /**
     * 执行抛出异常,非业务原因
     */
    public static final String ERROR = "-1";

    /**
     * 系统日志：操作信息
     */
    public static final String LOGGER_LEVEL_INFO = "INFO";

    /**
     * 数据库相关
     **/
    /*查询分页*/
    public static final int SQL_PAGE_NUM = 1;
    public static final int SQL_PAGE_SIZE = 5;

    public static final int SQL_DELETED_FLAG = 1;
    public static final int SQL_UNDELETED_FLAG = 0;
    public static final String DEFAULT_ILEVEL_CODE = "1.001.";
    public static final String START_ILEVEL_CODE = "001.";

    //用户功能权限标志
    public static final String USER_ROLE_FUNCTION = "user_role_function";
    //用户数据权限标志
    public static final String USER_ROLE_DATA = "user_role_data";


    public static final String SESSION_USER_CODE = "session_user_code";
    public static final String SESSION_USER_FULLNAME = "session_user_fullname";


    /**
     * 系统响应码
     **/
    public static final int SYS_CODE_SUCCESS = 200;
    public static final int SYS_CODE_ERROR = 500;
    public static final int SYS_CODE_WARN = 900;
    public static final int SYS_CODE_WARN_UNLOGIN = 901;

    public static final String SYS_RESOURCE_ROOT_ID = "root";
    public static final Integer SYS_RESOURCE_ROOT_ILEVEL = 1;
    public static final Integer SYS_RESOURCE_DEFAULT_SERIAL_NO = 1;

    /**
     * 系统响应信息
     **/
    public static final String SYS_MSG_SUCCESS = "处理成功!";
    public static final String SYS_MSG_ERROR = "系统异常!";
    public static final String SYS_WARN_SQL_ISNULL_PAGENUM = "页码不能为空!";
    public static final String SYS_ERROR_DATE_HANDLE = "日期格式处理出错!";
    /*首页*/
    public static final String SYS_WARN_COOKIE_ISNULL_CSID = "cookie信息中没有携带csid!";
    public static final String SYS_ERROR_CONNECT_HLHT_ME = "与互联互通获取用户信息接口通讯异常!";
    public static final String SYS_WARN_MSG_UNLOGIN = "用户未登录!";
    public static final String SYS_WARN_MSG_ISNULL_USER = "用户信息不能为空!";
    public static final String USER_IS_NULL = "用户不存在!";

}
